package com.rpclearnging.codec.impl;

import com.alibaba.fastjson.JSON;
import com.rpclearnging.codec.Encoder;

/**
 * @author:zyh
 * @Time:2021-03-17-16:25
 * @email:1269231889@qq.com
 */
public class JsonEncoder implements Encoder {
    @Override
    public  byte[] encode(Object obj) {
        return JSON.toJSONBytes(obj);
    }
}
